package com.study.design.pattern.pattern.behavioral.chainofresponsibility;

/**
 * @Author: gongsl
 * @Date: 2025-03-25 23:47
 * @description: 具体处理者3：总监审批
 */
public class Director extends LeaveHandler {
    @Override
    public void handleRequest(int leaveDays) {
        if (leaveDays <= 15) {
            System.out.println("总监批准 " + leaveDays + " 天请假");
        } else {
            System.out.println("请假天数过多，不予批准");
        }
    }
}
